// pages/guangchang/guangchang.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    dynamics: [
      {
        id: 1,
        avatar: '../../assets/images/avatar.png',
        username: '喵星人',
        userMeta: '布偶猫 ｜ 呱呱',
        time: '刚刚',
        content: '布偶是一只仙女喵哦～🐾\n💞💞布偶猫轻轻地走来，那优雅的姿态仿佛是一位绅士，让人无法抗拒它的可爱魅力。',
        images: [
          '../../assets/images/1.png',
          '../../assets/images/1.png',
          '../../assets/images/1.png'
        ]
      }
    ],
    comments: [
      {
        id: 1,
        avatar: '../../assets/images/avatar.png',
        username: '刘医生｜专业宠物医生',
        time: '刚刚',
        content: ['好可爱啊～～～～', '想养一只'],
        images: [
          '../../assets/images/1.png',
          '../../assets/images/1.png'
        ],
        replies: [
          {name: 'i u我以为i', content: '找个好看的麻袋，带走'},
          {name: '7issue', content: '啊阿啊，看起来好高贵呀'},
          {
            name: 'i u我以为i', 
            content: '对对，好想养一只呀',
            replyTo: '7issue'
          },
          {name: 'jysusio', content: '怎么样？好养吗？'}
        ]
      },
      {
        id: 2,
        avatar: '../../assets/images/avatar.png',
        username: '刘医生｜专业宠物医生',
        time: '刚刚',
        content: ['好可爱啊～～～～', '想养一只'],
        images: [],
        replies: [
          {name: 'i u我以为i', content: '找个好看的麻袋，带走'},
          {name: '7issue', content: '啊阿啊，看起来好高贵呀'},
          {
            name: 'i u我以为i', 
            content: '对对，好想养一只呀',
            replyTo: '7issue'
          },
          {name: 'jysusio', content: '怎么样？好养吗？'}
        ]
      },
      {
        id: 3,
        avatar: '../../assets/images/avatar.png',
        username: '刘医生｜专业宠物医生',
        time: '刚刚',
        content: ['好可爱啊～～～～', '想养一只'],
        images: [
          '../../assets/images/1.png'
        ],
        replies: [
          {name: 'i u我以为i', content: '找个好看的麻袋，带走'},
          {name: '7issue', content: '啊阿啊，看起来好高贵呀'},
          {
            name: 'i u我以为i', 
            content: '对对，好想养一只呀',
            replyTo: '7issue'
          },
          {name: 'jysusio', content: '怎么样？好养吗？'}
        ]
      },
      {
        id: 4,
        avatar: '../../assets/images/avatar.png',
        username: '刘医生｜专业宠物医生',
        time: '刚刚',
        content: ['好可爱啊～～～～', '想养一只'],
        images: [],
        replies: [
          {name: 'i u我以为i', content: '找个好看的麻袋，带走'},
          {name: '7issue', content: '啊阿啊，看起来好高贵呀'},
          {
            name: 'i u我以为i', 
            content: '对对，好想养一只呀',
            replyTo: '7issue'
          },
          {name: 'jysusio', content: '怎么样？好养吗？'}
        ]
      }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {},

  back() {
    wx.navigateBack({
      delta: 1,
    })
  },
  
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {},

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {},

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {},

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {},

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {},

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
})
